package com.icehand.demo.config;

import com.icehand.canal.handler.HandlerWrapper;
import com.icehand.demo.handler.HandlerImplDemo;
import com.icehand.demo.handler.PointAnnHandlerDemo;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author icehand
 */
@Configuration
public class DemoConfiguration {
    @Bean
    public HandlerWrapper handlerWrapper(){
        HandlerWrapper handlerWrapper = new HandlerWrapper();
        handlerWrapper.addHandler(new HandlerImplDemo());
        handlerWrapper.addPoint(new PointAnnHandlerDemo());
        return handlerWrapper;
    }
}
